package com.corechina.apex_osswords.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.corechina.apex_osswords.common.Response;
import com.corechina.apex_osswords.domain.entity.CoreFiles;
import com.corechina.apex_osswords.domain.vo.ImageStaticVo;
import com.corechina.apex_osswords.domain.vo.ImageVo;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 * 文件表 服务类
 * </p>
 *
 * @author cc
 * @since 2022-03-11
 */
public interface ICoreFilesService extends IService<CoreFiles> {

    Response uploadImage(MultipartFile file, String guidKey);

    Response uploadFile(MultipartFile file, String guidKey);

    void downloadFile(HttpServletResponse resp, Integer id);

    Response delFile(Integer id);

    Response getImageListByGuidKey(String guidKey, Integer type);

    ImageVo getById(Integer id, Integer type);

    ImageVo getByGuidKey(String guidKey);

    ImageStaticVo uploadImageForStatic(MultipartFile file);

}
